import request from '@/utils/request'

/**
* 配置表分页查询
* @param {查询条件} data
*/
export function listCksConfig(query) {
  return request({
    url: 'business/CksConfig/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增配置表
* @param data
*/
export function addCksConfig(data) {
  return request({
    url: 'business/CksConfig',
    method: 'post',
    data: data,
  })
}
/**
* 修改配置表
* @param data
*/
export function updateCksConfig(data) {
  return request({
    url: 'business/CksConfig',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取配置表详情
* @param {Id}
*/
export function getCksConfig(id) {
  return request({
    url: 'business/CksConfig/' + id,
    method: 'get'
  })
}

/**
* 删除配置表
* @param {主键} pid
*/
export function delCksConfig(pid) {
  return request({
    url: 'business/CksConfig/delete/' + pid,
    method: 'delete'
  })
}
